<template>
  <div id="list">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>商品回收站</span>
      </div>
      <div id="card">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>筛选查询</span>
          </div>
          <div id="input1">
            关键词<el-input class="input" v-model="input" placeholder="商品名称/商品货架"></el-input>
            商品分类 <el-select v-model="value" class="input" placeholder="请选择">
              <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled">
              </el-option>
            </el-select>
            品牌分类<el-select v-model="value1" class="input" placeholder="请选择">
              <el-option v-for="item in options1" :key="item.value1" :label="item.label" :value="item.value1" :disabled="item.disabled">
              </el-option>
            </el-select>

          </div>
          <div id="anniu1">
            <el-button type="info" plain>重置</el-button>
            <el-button type="info" plain>筛选</el-button>
          </div>
        </el-card>
      </div>
      <div id="shuju">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>数据列表</span>
          </div>
          <div id="card">
            <el-table :data="tableData" :default-sort="{prop: 'xh', order: 'ascending'}" border height="400">
              <el-table-column type="selection" width="55">
              </el-table-column>
              <el-table-column fixed prop="xh" label="序号" width="95">
              </el-table-column>
              <el-table-column prop="sptp" label="商品图片" width="180">
              </el-table-column>
              <el-table-column prop="tpmc" label="图片名称" width="180">
              </el-table-column>
              <el-table-column prop="huohao" label="货号" width="180">
              </el-table-column>
              <el-table-column sortable prop="jiage" label="价格" width="120">
              </el-table-column>
              <el-table-column prop="fenl" label="分类" width="120">
              </el-table-column>
              <el-table-column label="操作">
                <template slot-scope="scope">
                  <el-button @click.native.prevent="deleteRow(scope.$index, tableData)" type="text">
                    还原
                  </el-button>
                  <el-button type="text">删除</el-button>
                </template>
              </el-table-column>
            </el-table>
          </div>
        </el-card>
      </div>
      <div id="fenye">
        <div class="block">
          <el-pagination :page-sizes="[5,10,15,20]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="20">
          </el-pagination>
        </div>
      </div>
      <div></div>
    </el-card>
  </div>
</template>
<style scopd>
.anniu {
  height: 40px;
}
.input {
  width: 200px;
  margin-left: 20px;
  margin-right: 50px;
}
#anniu1 {
  text-align: center;
  margin-top: 40px;
}
#input1 {
  text-align: center;
}
#card {
  margin-top: 20px;
}
#shuju {
  margin-top: 10px;
}
#fenye {
  margin-top: 10px;
  text-align: center;
}
</style>
  <script>
export default {
  data() {
    return {
      input: '',
      input2: '',
      input3: '',
      select: '',
      options: [{
        value: '选项1',
        label: 'A货'
      }, {
        value: '选项2',
        label: 'B货'
      }, {
        value: '选项3',
        label: 'C货'
      },],
      value: '',
      options1: [{
        value1: '选项1',
        label: 'A货'
      }, {
        value1: '选项2',
        label: 'B货'
      }, {
        value1: '选项3',
        label: 'C货'
      },],
      value1: '',
      tableData: [{
        xh: '1',
        sptp: '80088208819',
        tpmc: '乔丹',
        huohao: '1518549238',
        jiage: '999.0',
        fenl: '运动服',
        pjsj: '名牌',
        sfxs: '已上架',
        czuo: '822'
      }, {
        xh: '2',
        sptp: '80088208813',
        tpmc: '李宁',
        huohao: '1518549238',
        jiage: '999.0',
        fenl: '运动服',
        pjsj: '名牌',
        sfxs: '已上架',
        czuo: '822'
      }, {
        xh: '3',
        sptp: '80088208810',
        tpmc: '行',
        huohao: '1518549238',
        jiage: '999.0',
        fenl: '运动服',
        pjsj: '名牌',
        sfxs: '已上架',
        czuo: '822'
      }, {
        xh: '4',
        sptp: '80088208820',
        tpmc: '鸿星尔克',
        huohao: '1518549238',
        jiage: '999.0',
        fenl: '运动服',
        pjsj: '名牌',
        sfxs: '已上架',
        czuo: '822'
      }, {
        xh: '5',
        sptp: '80088208820',
        tpmc: '花花公子',
        huohao: '1518549238',
        jiage: '999.0',
        fenl: '运动服',
        pjsj: '名牌',
        sfxs: '已上架',
        czuo: '822'
      }]

    }
  }
}
</script>